home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat4 / uuencode.z / uuencode
Encoding:
Text File  |  2002-10-03  |  2.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. UUUUUUUUEEEENNNNCCCCOOOODDDDEEEE((((4444))))                                                        UUUUUUUUEEEENNNNCCCCOOOODDDDEEEE((((4444))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      uuencode - format of an encoded uuencode file
  10.  
  11. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  12.      Files output by _u_u_e_n_c_o_d_e(_1_C) consist of a header line, followed by a
  13.      number of body lines, and a trailer line.  _U_u_d_e_c_o_d_e(_1_C) will ignore any
  14.      lines preceding the header or following the trailer.  Lines preceding a
  15.      header must not, of course, look like a header.
  16.  
  17.      The header line is distinguished by having the first 6 characters
  18.      "begin ".  The word _b_e_g_i_n is followed by a mode (in octal), and a string
  19.      which names the remote file.  A space separates the three items in the
  20.      header line.
  21.  
  22.      The body consists of a number of lines, each at most 62 characters long
  23.      (including the trailing newline).  These consist of a character count,
  24.      followed by encoded characters, followed by a newline.  The character
  25.      count is a single printing character, and represents an integer, the
  26.      number of bytes the rest of the line represents.  Such integers are
  27.      always in the range from 0 to 63 and can be determined by subtracting the
  28.      character space (octal 40) from the character.
  29.  
  30.      Groups of 3 bytes are stored in 4 characters, 6 bits per character.  All
  31.      are offset by a space to make the characters printing.  The last line may
  32.      be shorter than the normal 45 bytes.  If the size is not a multiple of 3,
  33.      this fact can be determined by the value of the count on the last line.
  34.      Extra garbage will be included to make the character count a multiple of
  35.      4.  The body is terminated by a line with a count of zero.  This line
  36.      consists of one ASCII space.
  37.  
  38.      The trailer line consists of "end" on a line by itself.
  39.  
  40. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  41.      uuencode(1C), uudecode(1C), uucp(1C), mail(1)
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.